import os

source_files = ['display.cpp', 'keyboard.cpp', 'main.cpp', 'material.cpp', 'physics.cpp', 'reader.cpp', 'uvec.cpp']

libraries = ['GL', 'GLU', 'glut', 'stdc++']

configurations = {
	'gcc' : ['gcc', '-O3'],
	}

compiler = 'gcc'

build_dir = 'bin'
executable_file = 'dynamicengine'


###################################################################################################

config_name = 'gcc'
config = configurations[config_name]

for i in range(len(source_files)):
    source_files[i] = build_dir+'/'+source_files[i]

BuildDir(build_dir, '.', duplicate=0)
env = Environment(CXX=config[0], ENV = os.environ)
env.Program(target=build_dir+'/'+executable_file, source=source_files, LIBS=libraries, CCFLAGS=config[1])
